package entity

import (
	"time"

	"shqsoft.cn/pasnj/base"
)

//IndiAccoFlow2 零售变更
type IndiAccoFlow2 struct {
	ID     int       `gorm:"AUTO_INCREMENT;primary_key;column:ID"`
	ACNO   string    `gorm:"column:ACNO"`
	BANO   string    `gorm:"column:BANO;"`
	UTNM   string    `gorm:"column:UTNM;"`
	UTID   int       `gorm:"column:UTID;"`
	ACBL   float64   `gorm:"column:ACBL"`
	OPDT   string    `gorm:"column:OPDT;"`
	YWLX   string    `gorm:"column:YWLX;"`
	ITNM   string    `gorm:"column:ITNM"`
	IDNO   string    `gorm:"column:IDNO"`
	CUNM   string    `gorm:"column:CUNM;"`
	FPNO   int       `gorm:"column:FPNO;"`
	PPNO   int       `gorm:"column:PPNO;"`
	ISDIVI bool      `gorm:"column:ISDIVI;"` //是否认定
	YEAL   float64   `gorm:"column:YEAL;"`
	VLDT   time.Time `gorm:"column:VLDT;"`
	MADT   time.Time `gorm:"column:MADT;"`
	RDNM   string    `gorm:"column:RDNM;"`
}

//TableName 表名
func (IndiAccoFlow2) TableName() string {
	return "V_INDI_ACCO_FLOW"
}

func IndiAccoFlow2EF() base.EntityFunc {
	return func() interface{} {
		entity := IndiAccoFlow2{}
		return &entity
	}
}
func IndiAccoFlow2ESF() base.EntitiesFunc {
	return func() interface{} {
		var entities []IndiAccoFlow2
		return &entities
	}
}
func init() {
	base.DaoPoolObj.Put("IndiAccoFlow2", base.NewDefaultDao(IndiAccoFlow2EF(), IndiAccoFlow2ESF(), nil))
}
